<div ng-include="'tpl/base/web/header.html'"></div>
<div ng-include="'tpl/base/web/search.html'"></div>

<div ng-controller="fatherCtrl">
    <div id="leftTab8" class="clearfix">
        <div ng-include="'tpl/base/web/leftTab.html'"></div>
        <div class="interface fl clearfix">

            <!-- Nav tabs -->
            <ul class="nav nav-tabs" role="tablist">
                <li role="presentation" class="active"><a onclick="return false;" href="#home" aria-controls="home" role="tab" data-toggle="tab">品牌维护</a></li>
                <li role="presentation"><a onclick="return false;" href="#tab7_nav2" aria-controls="tab7_nav2" role="tab" data-toggle="tab">车型维护</a></li>
                <li role="presentation"><a onclick="return false;" href="#tab7_nav3" aria-controls="tab7_nav3" role="tab" data-toggle="tab">车款维护</a></li>
            </ul>

            <!-- Tab panes -->
            <div class="tab-content">
                <!--品牌维护-->
                <div ng-controller="leftTab8" role="tabpanel" class="tab-pane active" id="home">

                    <div class="mask" ng-show="layerOutShow"></div>
                    <div class="merchantSearch">
                        <ul>
                            <li>
                                <!--<label><span>用户名：</span><input type="text"></label>-->
                                <label style="margin-right: 55px"><span>品牌：</span><input type="text" ng-model="searchMsg.code"></label>
                                <!--<label><span>店主姓名：</span><input type="text"></label>-->
                            </li>

                            <br>
                            <li>
                                <button class="searchBtn" ng-click="searcBtnClick();">搜索</button>
                            </li>
                        </ul>
                    </div>

                    <div class="merchantList">
                        <ul>
                            <li class="addM" ng-click="createBrandBtn();"><img src="img/icon/addMer.png" alt="">新增品牌</li>
                            <li class="deleteM" ng-click="deleteMerchantBtn();"><img src="img/icon/delete.png" alt="">批量删除</li>
                        </ul>

                        <table>
                            <tr class="th">
                                <td class="input"><input type="checkbox" ng-model="select_all" ng-change="selectAll($event)"></td>
                                <td>首字母</td>
                                <td>品牌</td>
                                <td>操作</td>
                            </tr>

                            <tr ng-repeat="item in brandTable" on-finish-render-filters>
                                <td class="input"><input type="checkbox" ng-model="item.checked" ng-change="selectOne($event)"></td>
                                <td>{{item.leadingChar}}</td>
                                <td>{{item.code}}</td>
                                <td style="color:red;text-decoration: underline" ng-click="disableBtn();" ng-show="item.dataSign==0">禁用</td>
                                <td style="color:green;text-decoration: underline" ng-click="enDisableBtn();" ng-show="item.dataSign==1">启用</td>
                            </tr>


                        </table>
                    </div>

                    <div class="home_layerOut" ng-show="layerOutShow">
                        <h3>新增品牌<img src="img/icon/cha.png" alt="" ng-click="closeLay()"></h3>
                        <div>
                            <div>
                                <span style="min-width: 95px;display: inline-block;">首字母</span>
                                <select style="width:70%;box-sizing: border-box;height:30px;text-indent: 10px;" name="leadingCharName" ng-options="v.leadingChar as v.leadingChar for v in chars" ng-model="leadingChar">
                                </select>
                            </div>
                            <div>
                                <span style="min-width: 95px;display: inline-block;">品牌</span>
                                <input style="width:70%;" type="text" ng-model="creatBrandMsg.code">
                            </div>

                        </div>
                        <input type="button" value="新增并继续添加" ng-click="creatBrandSub();">
                    </div>

                    <div class="paging" >
                        <div class="clearfix box-between">
                            <!--<div class="branches fl">-->
                            <!--<select name="" id="">-->
                            <!--<option value="">1</option>-->
                            <!--<option value="">1</option>-->
                            <!--<option value="">1</option>-->
                            <!--<option value="">4</option>-->
                            <!--</select>-->
                            <!--<span>条 / 页</span>-->
                            <!--</div>-->

                            <div class="page fl">
                                <span class="fl pageTurn prev" ng-click="firstPageBtn();">首页</span>
                                <span class="fl pageTurn prev" ng-click="prevPageBtn();">上一页</span>
                                <!--<ul class="fl">-->
                                <!--<li>1</li>-->
                                <!--<li>2</li>-->
                                <!--<li>3</li>-->
                                <!--<li>4</li>-->
                                <!--<li>5</li>-->
                                <!--<li>6</li>-->
                                <!--<li>7</li>-->
                                <!--<li>8</li>-->

                                <!--</ul>-->
                                <div class="pageTo fl">
                                    <p>转到 <input type="text" ng-model="page1" ng-keyup="myKeyup13($event)"> 页</p>
                                </div>
                                <span class="fl pageTurn next" ng-click="nextPageBtn();">下一页</span>
                                <span class="fl pageTurn next toLast" ng-click="lastPageBtn();">尾页</span>
                                <p class="fl">共 <span>{{pageMsg.totalPages}}</span> 页  /  <span>{{pageMsg.totalElements}}</span> 条数据</p>
                            </div>
                        </div>


                    </div>
                </div>

                <!--车型维护-->
                <div ng-controller="leftTab8_1" role="tabpanel" class="tab-pane" id="tab7_nav2">
                    <div class="mask" ng-show="layerOutShow"></div>
                    <div class="merchantSearch">
                        <ul>
                            <li>
                                <!--<label><span>用户名：</span><input type="text"></label>-->
                                <label style="margin-right: 55px"><span>品牌：</span><input type="text" ng-model="searchMsg.brandCode"></label>
                                <label><span>车型：</span><input type="text" ng-model="searchMsg.code"></label>
                            </li>

                            <br>
                            <li>
                                <button class="searchBtn" ng-click="searcBtnClick();">搜索</button>
                            </li>
                        </ul>
                    </div>

                    <div class="merchantList">
                        <ul>
                            <li class="addM" ng-click="createModelBtn();"><img src="img/icon/addMer.png" alt="">新增车型</li>
                            <li class="deleteM" ng-click="deleteCarModelBtn()"><img src="img/icon/delete.png" alt="">批量删除</li>
                        </ul>

                        <table>
                            <tr class="th">
                                <td class="input"><input type="checkbox" ng-model="select_all" ng-change="selectAll($event)"></td>
                                <td>首字母</td>
                                <td>品牌</td>
                                <td>车型</td>
                                <td>操作</td>
                            </tr>

                            <tr ng-repeat="item in carModel" on-finish-render-filters>
                                <td class="input"><input type="checkbox" ng-model="item.checked" ng-change="selectOne($event)"></td>
                                <td>{{item.leadingChar}}</td>
                                <td>{{item.brandCode}}</td>
                                <td>{{item.code}}</td>
                                <td style="color:red;text-decoration: underline" ng-click="disableBtn();" ng-show="item.dataSign==0">禁用</td>
                                <td style="color:green;text-decoration: underline" ng-click="enDisableBtn();" ng-show="item.dataSign==1">启用</td>
                            </tr>


                        </table>
                    </div>

                    <div class="home_layerOut" ng-show="layerOutShow">
                        <h3>新增车型<img src="img/icon/cha.png" alt="" ng-click="closeLay();"></h3>
                        <div>
                            <div>
                                <span style="min-width: 95px;display: inline-block;">品牌</span>
                                <select style="width:70%;box-sizing: border-box;height:30px;text-indent: 10px;" name="carBrandName" ng-options="v.code as v.code for v in carBrand" ng-model="carBrandCode" ng-change="getCarLeadingChar();">
                                </select>
                            </div>
                            <div>
                                <span style="min-width: 95px;display: inline-block;">车型</span>
                                <input style="width:70%;" type="text" ng-model="creatCarBrandMsg.code">
                            </div>

                        </div>
                        <input type="button" value="新增并继续添加" ng-click="creatCarBrandSub();">
                    </div>
                    <div class="paging" >
                        <div class="clearfix box-between">
                            <!--<div class="branches fl">-->
                            <!--<select name="" id="">-->
                            <!--<option value="">1</option>-->
                            <!--<option value="">1</option>-->
                            <!--<option value="">1</option>-->
                            <!--<option value="">4</option>-->
                            <!--</select>-->
                            <!--<span>条 / 页</span>-->
                            <!--</div>-->

                            <div class="page fl">
                                <span class="fl pageTurn prev" ng-click="firstPageBtn();">首页</span>
                                <span class="fl pageTurn prev" ng-click="prevPageBtn();">上一页</span>
                                <!--<ul class="fl">-->
                                <!--<li>1</li>-->
                                <!--<li>2</li>-->
                                <!--<li>3</li>-->
                                <!--<li>4</li>-->
                                <!--<li>5</li>-->
                                <!--<li>6</li>-->
                                <!--<li>7</li>-->
                                <!--<li>8</li>-->

                                <!--</ul>-->
                                <div class="pageTo fl">
                                    <p>转到 <input type="text" ng-model="page1" ng-keyup="myKeyup13($event)"> 页</p>
                                </div>
                                <span class="fl pageTurn next" ng-click="nextPageBtn();">下一页</span>
                                <span class="fl pageTurn next toLast" ng-click="lastPageBtn();">尾页</span>
                                <p class="fl">共 <span>{{pageMsg.totalPages}}</span> 页  /  <span>{{pageMsg.totalElements}}</span> 条数据</p>
                            </div>
                        </div>


                    </div>
                </div>

                <!--车款维护-->
                <div ng-controller="leftTab8_2" role="tabpanel" class="tab-pane" id="tab7_nav3">
                    <div class="mask" ng-show="layerOutShow"></div>
                    <div class="merchantSearch">
                        <ul>
                            <li>
                                <label><span>品牌：</span><input type="text" ng-model="searchMsg.brandCode"></label>
                                <label style="margin-right: 55px"><span>车型：</span><input type="text" ng-model="searchMsg.carModel"></label>
                                <label><span>车款：</span><input type="text" ng-model="searchMsg.code"></label>
                            </li>

                            <br>
                            <li>
                                <button class="searchBtn" ng-click="searcBtnClick();">搜索</button>
                            </li>
                        </ul>
                    </div>

                    <div class="merchantList">
                        <ul>
                            <li class="addM" ng-click="createCarStyleBtn();"><img src="img/icon/addMer.png" alt="">新增车款</li>
                            <li class="deleteM" ng-click="deleteCarModelBtn();"><img src="img/icon/delete.png" alt="">批量删除</li>
                        </ul>

                        <table>
                            <tr class="th">
                                <td class="input"><input type="checkbox" ng-model="select_all" ng-change="selectAll($event)"></td>
                                <td>首字母</td>
                                <td>品牌</td>
                                <td>车型</td>
                                <td>车款</td>
                                <td>操作</td>
                            </tr>

                            <tr ng-repeat="item in carModel" on-finish-render-filters>
                                <td class="input"><input type="checkbox" ng-model="item.checked" ng-change="selectOne($event)"></td>
                                <td>{{item.leadingChar}}</td>
                                <td>{{item.brandCode}}</td>
                                <td>{{item.carModel}}</td>
                                <td>{{item.code}}</td>
                                <td style="color:red;text-decoration: underline" ng-click="disableBtn();" ng-show="item.dataSign==0">禁用</td>
                                <td style="color:green;text-decoration: underline" ng-click="enDisableBtn();" ng-show="item.dataSign==1">启用</td>
                            </tr>

                        </table>
                    </div>

                    <div class="home_layerOut" ng-show="layerOutShow">
                        <h3>新增车款<img src="img/icon/cha.png" alt="" ng-click="closeLay();"></h3>
                        <div>
                            <div>
                                <span style="min-width: 95px;display: inline-block;">品牌</span>
                                <select style="width:70%;box-sizing: border-box;height:30px;text-indent: 10px;" name="carStyleName" ng-options="v.code as v.code for v in carStyle" ng-model="carStyleCode" ng-change="getCarStyleLeadingChar();">
                                </select>
                            </div>
                            <div>
                                <span style="min-width: 95px;display: inline-block;">车型</span>
                                <select style="width:70%;box-sizing: border-box;height:30px;text-indent: 10px;" name="carTypeName" ng-options="v.code as v.code for v in carType" ng-model="carTypeCode">
                                </select>
                            </div>

                            <div>
                                <span style="min-width: 95px;display: inline-block;">年份</span>
                                <select style="width:70%;box-sizing: border-box;height:30px;text-indent: 10px;" name="carYearName" ng-options="v as v for v in listYear" ng-model="year">
                                    <option value="">2018</option>
                                </select>
                            </div>

                            <div>
                                <span style="min-width: 95px;display: inline-block;">车款</span>
                                <input style="width:70%;" type="text" ng-model="creatCarStyleMsg.code">
                            </div>

                        </div>
                        <input type="button" value="新增并继续添加" ng-click="creatCarStyleSub();">
                    </div>

                    <div class="paging" >
                        <div class="clearfix box-between">
                            <!--<div class="branches fl">-->
                            <!--<select name="" id="">-->
                            <!--<option value="">1</option>-->
                            <!--<option value="">1</option>-->
                            <!--<option value="">1</option>-->
                            <!--<option value="">4</option>-->
                            <!--</select>-->
                            <!--<span>条 / 页</span>-->
                            <!--</div>-->

                            <div class="page fl">
                                <span class="fl pageTurn prev" ng-click="firstPageBtn();">首页</span>
                                <span class="fl pageTurn prev" ng-click="prevPageBtn();">上一页</span>
                                <!--<ul class="fl">-->
                                <!--<li>1</li>-->
                                <!--<li>2</li>-->
                                <!--<li>3</li>-->
                                <!--<li>4</li>-->
                                <!--<li>5</li>-->
                                <!--<li>6</li>-->
                                <!--<li>7</li>-->
                                <!--<li>8</li>-->

                                <!--</ul>-->
                                <div class="pageTo fl">
                                    <p>转到 <input type="text" ng-model="page1" ng-keyup="myKeyup13($event)"> 页</p>
                                </div>
                                <span class="fl pageTurn next" ng-click="nextPageBtn();">下一页</span>
                                <span class="fl pageTurn next toLast" ng-click="lastPageBtn();">尾页</span>
                                <p class="fl">共 <span>{{pageMsg.totalPages}}</span> 页  /  <span>{{pageMsg.totalElements}}</span> 条数据</p>
                            </div>
                        </div>


                    </div>

                </div>


            </div>

        </div>

    </div>
</div>

<div ng-include="'tpl/base/web/bottom.html'"></div>














